package com.yao.provider.service;

import domain.User;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;
import service.UserService;

/**
 * 使用dubbo的service注解暴露服务接口
 *
 * @author yao
 */
// @Service(version = "1.0",group = "B")
// @Component
public class UserServiceB1Impl implements UserService {

    @Override
    public String sayHello(User user) {
        return "hello"+user.getName()+",from version:1,group:B,provider:1";
    }
}
